// +----------------------------------------------------------------------
// | 品牌api请求
// +----------------------------------------------------------------------

import request from "@/utils/request.js";


/**
 * 全部类型
 * @param String user_id:9FE0AAB0-EF09-ED77-E05A-F02E5DA7A71C
 * 
 */
export function getTypeList() {
	return request.get('news/specialDiscountAllType');
}

/**
 * 全部颜色
 * @param String user_id:9FE0AAB0-EF09-ED77-E05A-F02E5DA7A71C
 * 
 */
export function getColorList() {
	return request.get('news/specialDiscountColour');
}

/**
 * 全部城市
 * @param String user_id:9FE0AAB0-EF09-ED77-E05A-F02E5DA7A71C
 * 
 */
export function getCityList() {
	return request.get('news/specialDiscountCity');
}

/**
 * 第一级车型
 * @param String user_id:9FE0AAB0-EF09-ED77-E05A-F02E5DA7A71C
 * 
 */
export function getOneBrandList() {
	return request.get('news/specialDiscountBrand');
}

/**
 * 第二级车型
 * @param String user_id:9FE0AAB0-EF09-ED77-E05A-F02E5DA7A71C
 * 
 */
export function getSecondBrandList(id) {
	return request.get('news/specialDiscountSeries?brand_id='+id);
}

/**
 * 车源列表
 * @param String user_id:9FE0AAB0-EF09-ED77-E05A-F02E5DA7A71C
 * 
 */
export function getCarList(data) {
	return request.get("news/specialDiscountList?search="+data['search']+"&remark_id="+data['remark_id']+"&color_name="+data['color_name']+"&city_id="+data['city_id']+"&brand_id="+data['brand_id']+"&series_two_id="+data['series_two_id']+"&page_num="+data['page_num']+"&page="+data['page']);
}